import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'recording_screen_platform_interface.dart';

/// An implementation of [RecordingScreenPlatform] that uses method channels.
class MethodChannelRecordingScreen extends RecordingScreenPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('recording_screen');


  @override
  Future<bool?> startHyRecordScreen(String name,{int width = 0,int height = 0,bool audio=true}) async {
    final bo = await methodChannel.invokeMethod<bool>('startHyRecordScreen',{
      "name": name,
      "width": width,
      "height": height,
      "audio": audio,
    });
    return bo;
  }
  @override
  Future<String?> stopHyRecordScreen() async {
    final path = await methodChannel.invokeMethod<String>('stopHyRecordScreen');
    return path;
  }


}
